package com.bifrost.repository;

import com.bifrost.entity.OrderReturn;
import com.bifrost.entity.ReturnMediaMap;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author rangf
 * @date 2018/3/7
 */
public interface ReturnMediaMapRepository extends JpaRepository<ReturnMediaMap, Long> {

    /**
     * 获取售后图片
     *
     * @param orderReturn
     * @return
     */
    List<ReturnMediaMap> getAllByorderReturn(OrderReturn orderReturn);
}
